package net.joint_painting.shared.model;

import java.io.Serializable;

/**
 * @author CAM
 * @version $Revision: 1.0 $
 */
public class Color implements Serializable {

    private Integer red, green, blue;
    private Double alpha;

    public Color() {

    }

    /**
     * Constructor for Color.
     * 
     * @param color
     *            gwt.g2d.client.graphics.Color
     */
    public Color(gwt.g2d.client.graphics.Color color) {
	red = color.getR();
	green = color.getG();
	blue = color.getB();
	alpha = color.getAlpha();
    }

    /**
     * Method getColor.
     * 
     * @return gwt.g2d.client.graphics.Color
     */
    public gwt.g2d.client.graphics.Color getColor() {
	return new gwt.g2d.client.graphics.Color(red, green, blue, alpha);
    }

}
